package com.faxe.letsgroup.ws.to;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;


@Entity
@Table(name="users")
public class UserTO extends BaseTO implements java.io.Serializable{
	
	private static final long serialVersionUID = 1L;
	public static final String AUTH_STUDENT = "ROLE_STUDENT";
	public static final String AUTH_TEACHER = "ROLE_TEACHER";
	public static final String AUTH_ADMIN = "ROLE_ADMIN";
	

	@Id
	@GenericGenerator(name="userGenerator", strategy="increment")
	@Column(name="ID",unique = true, nullable = false)
	@GeneratedValue(generator = "userGenerator")
	private Long id;
	
	@Column(name="NAME")
	private String name;
	
	@Column(name="EMAIL")
	private String email;
	
	@Column(name="PASSWORD")
	private String password;
	
	@Column(name="ADDRESS")
	private String address;
	
	@Column(name="COUNTRY")
	private String country;
	
	@Column(name="STATE")
	private String state;
	
	@Column(name="CITY")
	private String city;
	
	@Column(name="NEIGHBOURHOOD")
	private String neighbourhood;
	
	@Column(name="AGE")
	private String age;
	
	@Column(name="PHONE_NUMBER")
	private String phoneNumber;
	
	@Column(name="CPF")
	private String cpf;
	
	@Column(name="TYPE")
	private String type;
	
	@Column(name="AUTHORITY")
	private String authority;
	/*
	 * Relationships
	 */
	
	

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getNeighbourhood() {
		return neighbourhood;
	}

	public void setNeighbourhood(String neighbourhood) {
		this.neighbourhood = neighbourhood;
	}

	public String getAge() {
		return age;
	}

	public void setAge(String age) {
		this.age = age;
	}

	public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	public String getCpf() {
		return cpf;
	}

	public void setCpf(String cpf) {
		this.cpf = cpf;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}


	public String getAuthority() {
		return authority;
	}

	public void setAuthority(String authority) {
		this.authority = authority;
	}

	@Override
	public String getAbreviation() {
		// TODO Auto-generated method stub
		return null;
	}
	
	
	
}
